home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
develop, the CD; issue 1
/
Apple_Develop_1989.bin
/
Compatibility
/
About Sample
next >
Wrap
Text File
|
1989-04-01
|
2KB
|
68 lines
________________________________________________________________________
Macintosh Sample Code
#1: Sample
by Darin Adler, Mark Bennett, and Jim Reekes
Versions: 1.00 08/88
1.01 11/88
1.02 04/89
Components: Sample.p April 1, 1989
Sample.c April 1, 1989
Sample.a April 1, 1989
Sample.inc1.a April 1, 1989
SampleMisc.a April 1, 1989
Sample.r April 1, 1989
Sample.h April 1, 1989
PSample.make April 1, 1989
CSample.make April 1, 1989
ASample.make April 1, 1989
________________________________________________________________________
Major changes since 1.0
The way that memory availability is checked and handled at
initialization has been revamped. The way windows are
closed has changed sustantially. An error message dialog
has been added to better inform users, and error handling
in general is much improved. Finally, a funny hack was put
into the C version so that we could call PurgeSpace under
MPW 2.0.2.
Search in the code for ``1.01'' to find all the specific
changes.
Major changes since 1.01
Any dependency on MPW 2.0 has been removed; this version
requires MPW 3.0 or later. An improvement was made to
TrapAvailable to handle differences between Pre-MacII
machines and MacII and later machines.
Search in the code for ``1.02'' to find all the specific
changes.
________________________________________________________________________
Sample is an example application that demonstrates how to
initialize the commonly used toolbox managers, operate
successfully under MultiFinder, handle desk accessories,
and create, grow, and zoom windows.
It does not by any means demonstrate all the techniques you
need for a large application. In particular, Sample does
not cover exception handling, multiple windows/documents,
sophisticated memory management, printing, or undo. All of
these are vital parts of a normal full-sized application.
This application is an example of the form of a Macintosh
application; it is NOT a template. It is NOT intended to be
used as a foundation for the next world-class, best-selling,
600K application. A stick figure drawing of the human body
may be a good example of the form for a painting, but that
does not mean it should be used as the basis for the next
Mona Lisa.
We recommend that you review this program or TESample before
beginning a new application.